package com.proxy.chapter02.xu;

import javax.swing.*;
import java.awt.*;

/**
 *
 * @author xudenghui
 * @create 2023-06-19 9:40
 **/
public class WySpecialty extends JFrame implements Specialty {
    private static final long serialVersionUID = 1L;

    public WySpecialty() throws HeadlessException {
        super("韶关代理婺源特产测试");
        this.setLayout(new GridLayout(1, 1));
        JLabel l1 = new JLabel(new ImageIcon("C:\\Users\\lenovo\\Pictures\\Camera Roll\\u=1752460159,226752426&fm=26&gp=0.jpg"));
        this.add(l1);
        this.pack();
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }


    @Override
    public void display() {
        this.setVisible(true);
    }
}
